@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
    <table id="" class="table table-striped responsive-utilities jambo_table">
        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th>编号</th>
            <th>项目名称</th>
            <th>出票公司</th>
            <th>项目规模</th>
            <th>年收益率</th>
            <th>项目期限</th>
            <th>还款方式</th>
            <th>票据种类</th>
            <th>项目状态</th>
            <th>生成时间</th>
            <th>上市板块</th>
            <th>项目所属</th>
            <th class=" no-link last"><span class="nobr">操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($info as $k => $p)
            <tr class="even pointer img-box">
                <td class="a-center ">
                    <input type="checkbox" class="tableflat">
                </td>
                <td class=" ">{{$p->project_id}}</td>
                <td class="tr-time">
                    <span>{{$p->project_name}}</span>
                </td>
                <td class="tr-time">{{$p->company_name}}</td>
                <td class=" ">{{$p->project_scale}}</td>
                <td class=" ">{{$p->yield_rate}}</td>
                <td class=" ">{{$p->limit}}</td>
                <td class=" ">{{ProjectEnum::$Pay_types["$p->pay_id"]}}</td>
                <td class=" ">{{ProjectEnum::$Ticket_types["$p->ticket_type"]}}</td>
                <td class=" ">@if($p->status == 1)审核中@elseif($p->status == 2)<span style="color: green">审核通过</span>@else<span style="color: red">未审核</span>@endif</td>
                <td class=" ">{{date('Y-m-d',$p->created)}}</td>
                <td class=" ">{{ProjectEnum::$Plate_types["$p->plate"]}}</td>
                <td class=" ">@if($p->type ==1 )上市通@else央票通@endif</td>
                <td class=" last">
                    <a href="/manage_project_modify?project_id={{ $p->project_id }}">编辑</a>
                    <a href="javascript:;"  class="delete"  data-project_id="{{ $p->project_id }}">删除</a>
                </td>
            </tr>
        @endforeach
        </tbody>

    </table>
@stop